﻿import java.util.Calendar;


public class Exercise17 {

	public static void main(String[] args) {
		Calendar c=Calendar.getInstance();
        System.out.println("今天是"+c.get(Calendar.YEAR)+"年"+(c.get(Calendar.MONTH)+1)+"月"
		+c.get(Calendar.DAY_OF_MONTH)+"日");
        System.out.println("今天是星期"+(c.get(Calendar.DAY_OF_WEEK)-1));
	}

}
